#include "user.h"
#include<QHostAddress>
#include<cstring>
using namespace std;



/*
bool user::findFriend(QString fname)
{
    //this->friendlist.trimmed();
    return this->friendlist.contains(fname);
}
void user::deleteFriend(QString fname)
{
    string ftmp=fname.toStdString();
    string tmp=this->friendlist.toStdString();
    int pos = tmp.find_first_of(ftmp);
    if (pos>-1)
        tmp.erase(pos,fname.size());
    this->friendlist=QString::fromStdString(tmp);
}
void user::addFriend(QString fname)
{
    this->friendlist.append(fname);
    this->friendlist.append(" ");
}
*/

